using System;
using System.Collections.Generic;
using System.Text;

namespace Khanhnt
{
    public class timGiaTriLonNhat
    {
        private double a;
        private double b;
        private double c;

        public timGiaTriLonNhat()
        {
            a = 0;
            b = 0;
            c = 0;
        }

        public timGiaTriLonNhat(double a, double b, double c)
        {
            this.a = a;
            this.b = b;
            this.c = c;
        }

        public void nhapA(String a)
        {
            this.a = double.Parse(a);
        }

        public void nhapB(String b)
        {
            this.b = double.Parse(b);
        }

        public void nhapC(String c)
        {
            this.c = double.Parse(c);
        }

        public double tinhGiaTriLonNhat()
        {
            double max = a;

            if (b >= max)
            {
                max = b;
            }
            if (c >= max)
            {
                max = c;
            }

        return max;
        }
    }
}
